<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>农资与农产品全程供应链物流平台-订单查询</title>
<meta name="kewywords" content="农资与农产品全程供应链物流平台"/>
<meta name="description" content="农资与农产品全程供应链物流平台"/>
<link href="css/style.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript">
	// 修改订单
	function editCheck(){
		var selected_value = [];    
		$("input[name='ids']:checked").each(function(){    
		 	selected_value.push($(this).val());    
		});    
		if(selected_value.length == 0) {
			alert("你还没有选择任何内容"); 
			return false;
		} else if(selected_value.length > 1){
			alert("一次只能修改一条记录！"); 
			return false;
		}
		var id = selected_value[0];
		$("#editId").val(id);
		$("#orderManageEdit").submit();
	}
	// 删除订单
	function deleteCheck(){
		var selected_value = [];    
		$("input[name='ids']:checked").each(function(){    
		 	selected_value.push($(this).val());    
		});    
		if(selected_value.length == 0) {
			alert("你还没有选择任何内容"); 
			return false;
		} 
		var id = selected_value;
		document.getElementById("deleteIds").value=id;
		$("#orderManageDelete").submit();
	}
	function checkOrder(id){
	    		$.ajax({
	    			type : "post",
	    			url : "order/orderManageView",
	    			data :"selectIds="+id,
	    		});
	}
</script>
</head>
<body>
<%@include file="top.jsp" %>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	    <td width="187" height="37" bgcolor="#e0e0e0" class="brt bbt">
	    	<div class="topleft fl">系统菜单栏</div>
	    </td>
	    <td bgcolor="#e7e7e7" class=" bbt">
	    	<div class="topleft fl">您现在的位置：<a href="#">订单管理首页</a>&nbsp;>&nbsp;<span>订单查询</span>
	    </div>
	    </td>
	</tr>
	<tr>
	    <td width="187" height="100%" valign="top" bgcolor="#FFFFFF" class="brt">
	    	<div class="left_bk">
	           <div class="menu2">
				<%@include file="order_left.jsp" %>
				</div>
			</div>
		</td>
	    <td align="left" valign="top" bgcolor="#FFFFFF">
		    <div class="content">
				<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
			       <tr>
			          <td height="38" style="background:url(images/zz_tit.jpg) left top repeat-x;"><div class="tt_back fl">订单列表</div><div class="fr"><img src="images/tit_right.jpg" alt="" width="103" height="38" /></div></td>
			        </tr>
			        <tr>
						<td class="borders btn">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
							    <td height="41" bgcolor="#fffeee" style="border-bottom:#fee7bd solid 1px;padding-left: 20px;">
								 	<form action="order/orderManageViewQuery.action" method="post">		
									<table width="1100" border="0" cellspacing="0" cellpadding="0" align="left" >
									  	<tr>
										    <td width="120" align="right">订单号：</td>
										    <td width="90">
										    	<input type="text" name="order.id" class="input_are w122" /></td>
										    <td width="120" align="right">寄件人姓名：</td>
										    <td width="90">
										    	<input type="text" name="order.sender" class="input_are w122" /></td>
										    <td width="120" align="right">寄件人电话：</td>
										    <td width="90">
										    	<input type="text" name="order.sendertel" class="input_are w122" /></td>
										    <td width="120" align="right">订单状态：</td>
										    <td width="200" class="whitetdstyle">
												<select name="order.state" >
													<option value="">--请选择--</option>
													<option value="已收件">已收件</option>
													<option value="已入库">已入库</option>
													<option value="已出库">已出库</option>
													<option value="已出库">运输中</option>
													<option value="已出库">派件中</option>
													<option value="已完成">已完成</option>
												</select>
										    </td>
										    <td width="307">
										    	<input type="image" type="submit" src="images/cx.jpg" />
										    </td>
										</tr>
									</table>
									</form>
								</td>
								</tr>
								<tr>
								    <td align="center">
									    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
									    <!--
											<tr align="left">
										        <td height="42" colspan="2">
										         
										        <input type="button" id="addBt" style="cursor: pointer;" class="buttons" value="新  增"
										        	onClick="location.href='order/addOrderManage'" />
										        
										         <input type="button" id="editBt" class="buttons2"  style="cursor: pointer;" value="修  改"
										        	onClick="editCheck()" /> 
										        
										        <input type="button" class="buttons" id="deleteBt" value="删  除" style="cursor: pointer;" 
										        	onclick="deleteCheck()" />
										         
										        <form action="order/orderManageEdit.action" method="post" id ="orderManageEdit">
										        	<input type="hidden" id="editId" name="editId"/>
										        </form>
										        <form action="order/orderManageDelete.action" method="post" id ="orderManageDelete">
										        	<input type="hidden" id="deleteIds" name="deleteIds"/>
										        </form>
												</td>
											</tr>-->
									 		<tr>
										        <td colspan="2">
										        	<div style="height:350px">
											        <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#e3e3e3">
														<tr class="captit">
												            <td width="9%" height="31" align="center" valign="middle">订单号</td>
												            <td width="7%" height="31" align="center" valign="middle">寄件人姓名</td>
												            <td width="9%" height="31" align="center" valign="middle">寄件人电话</td>
												            <td width="17%" height="31" align="center" valign="middle">寄件人地址</td>
												            <td width="7%" height="31" align="center" valign="middle">收件人姓名</td>
												            <td width="9%" height="31" align="center" valign="middle">收件人电话</td>
												            <td width="17%" height="31" align="center" valign="middle">收件人地址</td>
												            <td width="5%" height="31" align="center" valign="middle">原寄地</td>
												            <td width="5%" height="31" align="center" valign="middle">目的地</td>
												            <td width="7%" height="31" align="center" valign="middle">寄件日期</td>
												            <td width="5%" height="31" align="center" valign="middle">订单状态</td>
														</tr>
														<s:iterator value="orderList" id="order" >
														<tr height="26" bgcolor="#efefef">
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF" id="orderid">
												            <s:url action="order/orderManageView.action" var="helloLink">
                                                            <s:param name="selectIds"><s:property value="#order.id"/></s:param></s:url>
															<a href="${helloLink}"><s:property value="#order.id"/></a>
												           <%--  <a href="order/orderManageView.action?selectIds="><s:property value="#order.id"/></a> --%>
												           </td>
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">
												            	<s:property value="#order.sender"/></td>
												            <td height="26" align="left" valign="middle" bgcolor="#FFFFFF">
												            	<s:property value="#order.sendertel"/></td>
												            <td height="26" align="left" valign="middle" bgcolor="#FFFFFF">
												            	<s:property value="#order.senderaddr"/></td>
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF">
												            	<s:property value="#order.recipient"/></td>
												            <td height="26" align="left" valign="middle" bgcolor="#FFFFFF">
												            	<s:property value="#order.recipienttel"/></td>
												            <td height="26" align="left" valign="middle" bgcolor="#FFFFFF" >
												            	<s:property value="#order.recipientaddr"/></td>
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF" class="wordblue">
												            	<s:property value="#order.origin"/></td>
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF" class="wordblue">
												            	<s:property value="#order.destination"/></td>
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF" class="wordblue">
												            	
												            	<s:date name="#order.senddate" format="yyyy-MM-dd" /> 
												            	</td>
												            <td height="26" align="center" valign="middle" bgcolor="#FFFFFF" class="wordblue">
												            	<s:property value="#order.state"/></td>
														</tr>
														</s:iterator>
													</table>
													</div>
										        </td>
											</tr>
											<tr>
										        <td width="30%" height="50"></td>
										        <td width="70%">
													<table width="700" border="0" align="right" cellpadding="0" cellspacing="0">
														<!-- 
														<tr>
												            <td width="96" height="26"><div class="prepage wordblue"><a href="#">上一页</a></div></td>
												            <td width="198"><div class="pagelist"><a href="#">1</a> <a href="#">2</a> <a href="#">3</a> <a href="#">4</a> ...<a href="#">100</a></div></td>
												            <td width="117"><div class="nextpage wordblue"><a href="#">下一页</a></div></td>
												            <td width="171" align="right" class="wordblue">共10页 当前第2页 到第</td>
												            <td width="42" align="center"><input type="text" style=" border:#dbdbdb solid 1px; width:30px; height:18px;"/></td>
												            <td width="22" class="wordblue">页</td>
												            <td width="54" align="center"><a href="#"><img src="images/bt.jpg" alt="" width="43" height="24" /></a></td>
														</tr> -->
														<tr>
															<td width="100%" >${pager.paginationModel}</td>
														</tr>
													</table>
												</td>
											</tr>
									    </table>
								    </td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
		    </div>
	    </td>
	</tr>
</table>
<div class="bottom">版权所有：安徽朗坤物联网</div>
</body>
</html>